package main

import (
	"fmt"
	"time"
	"./network"
)

func main()  {
	client := network.NewTcpClient("127.0.0.1:8888")
	go client.Start()

	count := 0
	for {
		count++
		client.SendMessage(count, []byte(fmt.Sprintf("test-%d", count)))
		time.Sleep(time.Second)
	}
}
